/**
 * Apple-Inspired Partners Showcase 
 * Clean, minimal and sophisticated design
 */

.partnersSection {
  padding: 6rem 0;
  background: 
    linear-gradient(180deg, 
      #f8fafc 0%,
      #ffffff 25%,
      #f8fafc 50%,
      #f1f5f9 75%,
      #e2e8f0 100%
    );
  position: relative;
  overflow: hidden;
}

.statsSection {
  margin-bottom: 6rem;
  position: relative;
  z-index: 1;
}

.sectionTitle {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1d1d1f;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  position: relative;
}

.sectionTitle::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
}

.sectionSubtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 3rem;
  line-height: 1.5;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.statCol {
  margin-bottom: 2rem;
}

.statCard {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.statCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.statIcon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.statCard:hover .statIcon {
  transform: scale(1.05);
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}

.iconEmoji {
  font-size: 2rem;
}

.statNumber {
  font-size: 2.25rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 0.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.statLabel {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* Partners Logo Wall Style */
.partnersLogoWall {
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.partnersTitle {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1d1d1f;
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  position: relative;
}

.partnersTitle::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
}

.partnersSubtitle {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 3rem;
  line-height: 1.5;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.logoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

.partnerCard {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.partnerCard:hover {
  transform: translateY(-12px) rotateX(8deg) rotateY(8deg) scale(1.02);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.12),
    0 15px 30px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.4);
}

.partnerCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(139, 92, 246, 0.06) 30%,
    rgba(16, 185, 129, 0.04) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 24px;
  pointer-events: none;
}

.partnerCard:hover::before {
  opacity: 1;
}

.partnerCard::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #3b82f6,
    #8b5cf6,
    #10b981,
    #f59e0b,
    #ef4444,
    #3b82f6
  );
  border-radius: 26px;
  opacity: 0;
  z-index: -1;
  animation: none;
  transition: opacity 0.6s ease;
}

.partnerCard:hover::after {
  opacity: 0.3;
  animation: rainbow-border 3s linear infinite;
}

@keyframes rainbow-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.partnerLogo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.partnerCard:hover .partnerLogo {
  transform: scale(1.2) rotateZ(10deg) rotateY(15deg);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(59, 130, 246, 0.4);
}

.logoEmoji {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: filter 0.6s ease;
}

.partnerCard:hover .logoEmoji {
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.partnerName {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  transition: all 0.6s ease;
}

.partnerCard:hover .partnerName {
  color: #3b82f6;
  transform: translateY(-2px);
}

/* Apple 风格的暗色模式 */
[data-theme='dark'] .partnersSection {
  background: #000000;
}

[data-theme='dark'] .statCard {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme='dark'] .statCard:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme='dark'] .statIcon {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .statCard:hover .statIcon {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme='dark'] .statNumber {
  color: #f5f5f7;
}

[data-theme='dark'] .statLabel {
  color: #86868b;
}

[data-theme='dark'] .partnerCard {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme='dark'] .partnerCard:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme='dark'] .partnerLogo {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme='dark'] .partnerName {
  color: #f5f5f7;
}

[data-theme='dark'] .partnerDescription {
  color: #86868b;
}

[data-theme='dark'] .partnersTitle,
[data-theme='dark'] .sectionTitle {
  color: #f5f5f7;
}

[data-theme='dark'] .partnersSubtitle,
[data-theme='dark'] .sectionSubtitle {
  color: #86868b;
}

/* Apple 风格的响应式设计 */
@media screen and (max-width: 996px) {
  .partnersSection {
    padding: 4rem 0;
  }
  
  .sectionTitle {
    font-size: 2.5rem;
  }
  
  .partnersTitle {
    font-size: 2rem;
  }
  
  .statsSection {
    margin-bottom: 4rem;
  }
  
  .statCard {
    padding: 1.75rem 1.25rem;
  }
  
  .statNumber {
    font-size: 2rem;
  }
  
  .statIcon {
    width: 50px;
    height: 50px;
  }
  
  .partnersList {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }
  
  .partnerCard {
    padding: 1.25rem;
  }
  
  .partnerLogo {
    width: 44px;
    height: 44px;
  }
}

@media screen and (max-width: 768px) {
  .partnersSection {
    padding: 3rem 0;
  }
  
  .sectionTitle {
    font-size: 2rem;
  }
  
  .partnersTitle {
    font-size: 1.75rem;
  }
  
  .statIcon {
    width: 44px;
    height: 44px;
  }
  
  .iconEmoji,
  .logoEmoji {
    font-size: 1.125rem;
  }
  
  .statNumber {
    font-size: 1.75rem;
  }
  
  .partnersList {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .partnerCard {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .partnerLogo {
    width: 40px;
    height: 40px;
  }
  
  .logoEmoji {
    font-size: 1rem;
  }
}
